const TokenKey = 'token'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey,token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
export function days(){
	let date = new Date("2024-09-30 23:59:59");
	let year = date.getFullYear();
	let month = ("0" + (date.getMonth() + 1)).slice(-2); // 获取月份并确保两位数
	let day = ("0" + date.getDate()).slice(-2); // 获取日并确保两位数
	let dateOnly = `${year}-${month}-${day}`;
	return dateOnly;
}